package com.pay.common.enums.lianlian;

/**
 * Created by Administrator on 2018/11/19.
 */
public enum CallBackEnum {
    SUCCESS("TRADE_SUCCESS", "成功"),
    FAILURE("TRADE_FAILURE", "交易失败"),
    CANCEL("TRADE_CANCEL", "退汇"),
    PREPAID("TRADE_PREPAID", "预付完成");

    public final String code;
    public final String msg;

    CallBackEnum(String code, String msg)
    {
        this.code = code;
        this.msg = msg;
    }




    public static boolean isSignType(String code)
    {
        for (SignTypeEnum s : SignTypeEnum.values())
        {
            if (s.getCode().equals(code))
            {
                return true;
            }
        }
        return false;
    }
}
